package mat;

 /**
  * cablage electrique de la borne
  *
  */

public class Cablage
{
    //adresses I2c
    public static final int PCF8574_AUX = 0x21;
    public static final int PCF8574_CLAVIER = 0x22;
    public static final int PCF8574_BAR = 0x20;
    public static final int HD66717 = 0x38;
    public static final int PCF8582 = 0x50;
    public static final int PCF8582M = 0x57;

    // cablage du PCF8574_AUX
    public static final byte MASQUE_INTRO_CAP = 0x01;
    public static final byte MASQUE_ALIM_CAP = 0x02;
    public static final byte MASQUE_BACKLIGHT = 0x04;
    public static final byte MASQUE_BUZZER = 0x08;
    public static final byte MASQUE_RESET_HD66717 = 0x10;
    public static final byte MASQUE_LED_BORNE = 0x20;

    //cablage du PCF8574_BAR
    public static final byte MSQ_MONT        = (byte)0x01; // commande L293 montee    sur PC0 Sortie
    public static final byte MSQ_DESC        = (byte)0x02; // commande L293 descente  sur PC1 Sortie
    public static final byte MSQ_EN          = (byte)0x04; // commande en du L293     sur PC2 Sortie
    public static final byte MSQ_FDCH        = (byte)0x08; // etat fin de course Haut sur PC3 Entree
    public static final byte MSQ_FDCL        = (byte)0x10; // etat fin de course Bas  sur PC4 Entree
    public static final byte MSQ_BCL_AMONT   = (byte)0x20; // etat boucle amont       sur PC5 Entree
    public static final byte MSQ_BCL_AVAL    = (byte)0x40; // etat boucle aval        sur PC6 Entree
    public static final byte MSQ_LIBRE       = (byte)0x80; // nu                      sur PC7

}